package com.hyl.service.user.impl;

import com.hyl.anno.catche.CGet;
import com.hyl.anno.catche.CPut;
import com.hyl.dao.user.UserMapper;
import com.hyl.myenum.cacheused.ElementChosen;
import com.hyl.pojo.user.User;
import com.hyl.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author HYL
 * @create 2017-06-19 下午3:35
 **/
@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    @CGet()
    public User findByUserNameAndPassword(User user) {
        System.out.println("service方法执行了");
        User user1 = userMapper.findUserByUsernameAndPassword(user);
        return user1;
    }
}
